<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			this.loadBMapScript()
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			loadBMapScript() {
				var script = document.createElement('script');
				script.type = 'text/javascript';
				script.src = 'https://api.map.baidu.com/api?type=webgl&v=2.0&ak=oeK86DZIYjG81FPqxcDFS5GfFZfWuZFw&callback=init'
				document.body.appendChild(script);
			}
		}
	}
</script>

<style lang="scss">
</style>
